package edu.univercidade.tcc.server.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class Permission {

    @NotNull
    @NotBlank
    @Size(max = 40)
    private String name;
    
	@Override
	public String toString() {
		return name;
	}
}
